
#include <limits.h>

#define Size 10
//#define Recursion
int num[Size]={1,4,-4,-8,2,3,4,5,6,7};
int sum[Size][Size];

void calSum()
{
	int i;
	int j;
	int k;
	for(i=0;i<Size;++i)
	{

		for(j=i;j<Size;++j)
		{
			for(k=i;k<=j;++k)
			{

				sum[i][j] +=num[k];
			}
			printf("%d ",sum[i][j]);
		}
	}
}

int print()
{
	int i;
	int j;
	int max = (INT_MAX )*(-1) ;
	int max_i;
	int max_j;
	for(i=0;i<Size;++i)
	{
		for(j=0;j<Size;++j)
		{
			printf("%d ",sum[i][j]);
		}
	}

}

int main()
{
	int i;
	int j;
	for(i=0;i<Size;++i)
	{
		for(j=0;j<Size;++j)
		{
			sum[i][j] = INT_MAX;
		}
		sum[i][i] = num[i];
	}
	//calSum();
	print();
	printf("hello");
	return 0;
}
